import Vue from 'vue'
import Router from 'vue-router'
import MainLayout from '@/pages/Layout'
import UserLogin from '@/pages/mgt/user/UserLogin'
import TeamMgt from '@/pages/mgt/team/TeamMgt'
import TeamConfig from '@/pages/mgt/team/TeamConfig'
import UserRegister from '@/pages/mgt/user/UserRegister'
import NewPage from '@/pages/mgt/page/NewPage'
import DataModel from '@/pages/mgt/model/DataModel'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'MainLayout',
      component: MainLayout
    },
    {
      path: '/teamconfig',
      name: 'TeamConfig',
      component: TeamConfig
    },
    {
      path: '/newpage',
      name: 'NewPage',
      component: NewPage
    },
    {
      path: '/login',
      name: 'UserLogin',
      component: UserLogin
    }, {
      path: '/team',
      name: 'TeamMgt',
      component: TeamMgt
    },
    {
      path: '/datamodel',
      name: 'DataModel',
      component: DataModel
    },
    {
      path: '/register',
      name: 'UserRegister',
      component: UserRegister
    }

  ]
})
